#include "World.h"


World::World(GLUquadricObj *p, int texture_id):Shape(texture_id)
{
	this->p = p;
	this->y = -3;
	this->x = 10;
	this->z = 0;
}

void World::Draw()
{
	glPushMatrix();
	 glColor3f(0, 1, 0);
	 glTranslatef(this->x,this->y,this->z);
	 glRotatef(90,1,0,0);
	 glRotatef(this->Anglecord.angle, this->Anglecord.xAngle,this->Anglecord.yAngle,this->Anglecord.zAngle);

	 glBindTexture(GL_TEXTURE_2D,this->texture_id);
	 gluDisk(this->p, 1, 800, 20, 20);
	 glBindTexture(GL_TEXTURE_2D,-1);
	 glutPostRedisplay();
	glPopMatrix();

	glPushMatrix();
	 glColor3f(0.3, 0.8, 1.0);
	 //glTranslatef(this->x,this->y,this->z);
	 glRotatef(90,1,0,0);
	 glRotatef(this->Anglecord.angle, this->Anglecord.xAngle,this->Anglecord.yAngle,this->Anglecord.zAngle);
	 gluSphere(p, 800, 20, 20);
	 glutPostRedisplay();
	glPopMatrix();
}


World::~World(void)
{
}
